﻿
Partial Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        Dim pw As String
        pw = Request.QueryString("pw") + String.Empty
        If (String.Empty.Equals(pw)) Then
            Response.Write("string.Empty")
        End If


        ' Response.Write(Utility.GetDateTimePW())

        If (Not IsPostBack) Then
            Dim dt As Data.DataTable
            dt = New Data.DataTable
            dt.Columns.Add("shoping", GetType(Boolean))
            dt.Columns.Add("qq", GetType(String))

            Dim row As Data.DataRow
            row = dt.NewRow()

            row(0) = False
            row(1) = "ABC"

            dt.Rows.Add(row)

            row = dt.NewRow()

            row(0) = False
            row(1) = "CDE"
            dt.Rows.Add(row)

            GV1.DataSource = dt
            GV1.DataBind()
        End If
        Response.Write(HttpContext.Current.Server.MapPath("."))
    End Sub


    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim chk As CheckBox
        Response.Write(GV1.Rows.Count)
        For Each row As GridViewRow In GV1.Rows
            chk = row.Cells(0).FindControl("chk1")
            If (chk.Checked) Then
                Response.Write(row.Cells(1).Text)
            End If
        Next
    End Sub
End Class
